page_alloc: properly honor MAX_ORDER in init_heap_pages()
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 30 Jan 2009 11:14:23 +0000 (11:14 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 30 Jan 2009 11:14:23 +0000 (11:14 +0000)
commitb93bffcc1ad5730e5a8fc98b13b1e0d51f8626ac
tree16dc22d6456b513e844f24ae1d7e45d7ca2154ab
parent1a3997bafce7d9a12c68b2d2e3cf8a90164c0d16
page_alloc: properly honor MAX_ORDER in init_heap_pages()

The previous check was flawed in that it checked
- for a single bit to be set instead of a range of bits to be clear
- a machine address against a mask supposed to be used on MFNs.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/common/page_alloc.c